/*
 * To change this template, choose Tools | Templates and open the template in
 * the editor.
 */
package demorunnablethread;

/**
 *
 * @author Admin
 */
public class DemoRunnableThread implements Runnable {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        Runnable run = new DemoRunnableThread();
        System.out.println("tao thead 1: ");
        Thread t1 = new Thread(run);
        System.out.println("tao thead 2: ");
        Thread t2 = new Thread(run);
        System.out.println("chay 2 thread");
        t1.start();
        t2.start();
    }

    @Override
    public void run() {
        System.out.println("I am an instance of the Runnable");
    }
}
